<?php
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
stdhead();
$limit = 10;
$row = sql_query("SELECT score, uid, username, times FROM `2048_rank` ORDER BY score DESC LIMIT $limit");
?>
<table style="text-align: center">
	<tr>
		<td style='padding: 5px'>排名</td>
		<td style='padding: 5px'>帐号</td>
		<td style='padding: 5px'>分数</td>
		<td style='padding: 5px'>创建日期</td>
	</tr>
	<?php
	$i = 0;
	while ($res = mysql_fetch_array($row)) {
		$i++;
		print("<tr><td style='padding: 5px'>$i</td><td style='padding: 5px'><a href='userdetails.php?id=$res[uid]' target='_blank' class='" . get_user_class_name_from_userid($res['uid']) . "_Name'><b>$res[username]</b></a></td><td style='padding: 5px'>$res[score]</td><td style='padding: 5px'>$res[times]</td></tr>");
	}
	?>
</table>
<?php
stdfoot();
